#include "board.h"
#include "ec11.h"
#include "zf_tim.h"

void TIM1_Isr() interrupt 3
{
	Counter.MainSW = ENABLE;
	Counter.Main++;

	if (EC11.btnStatus == BUTTON_NONE)
	{ // 阻塞式
		EC11.btnStatus = EC11_Process();
	}
}

void TIM4_Isr() interrupt 20
{
	TIM4_CLEAR_FLAG; // 清除中断标志

	Counter.Tim4SW = ENABLE;
}